WooCommerce\Square\Gateway D

Total Complexity 126
Dependencies 17
Dependents 5
Total lines 1,123
Lines of code 502
Logical lines of code 245
Comment lines 389
Methods 37
Properties 3

Methods 37

Method Rating Maintainability Complexity Lines of code
restore_refunded_inventory()
A
47 13 33
init_form_fields()
A
40 8 62
get_order()
A
46 9 35
get_order_for_refund()
A
49 9 27
enqueue_gateway_assets()
A
56 9 15
do_transaction()
S
51 6 26
validate_fields()
S
55 5 19
store_new_order_item_square_meta()
S
58 5 16
get_order_meta()
S
64 6 9
is_digital_wallet_available()
S
60 5 11
add_digital_wallets_form_fields()
S
42 1 62
add_card_types_form_fields()
S
62 4 11
add_payment_gateway_transaction_data()
S
64 4 10
wc_ajax_square_checkout_validate()
S
61 3 13
get_order_with_unique_transaction_ref()
S
61 3 12
__construct()
S
49 1 34
log_js_data()
S
64 3 8
is_available()
S
78 3 3
enqueue_payment_form_assets()
S
71 3 6
get_order_for_add_payment_method()
S
68 3 7
get_payment_form_instance()
S
71 2 6
get_guest_customer_id()
S
69 2 7
wc_ajax_square_checkout_handler()
S
66 2 7
get_application_id()
S
68 2 7
add_tokenization_form_fields()
S
66 2 8
get_api()
S
68 2 7
get_order_for_capture()
S
70 1 6
get_environment()
S
81 1 3
add_csc_form_fields()
S
82 1 3
get_customer_id()
S
75 1 4
get_method_form_fields()
S
82 1 3
get_authorization_time_window()
S
82 1 3
build_payment_tokens_handler()
S
80 1 3
is_3d_secure_enabled()
S
69 1 6
tokenize_before_sale()
S
82 1 3
csc_enabled()
S
82 1 3
mark_order_as_refunded()
S
75 1 4